<template>
  <Card shadow>
    <div>欢迎您</div>
  </Card>
</template>

<script>
export default {
  name: "home",
  data() {
    return {};
  },
  created() {
    let meunArrList = this.$store.state.user.meunArrList;
    let pushName = "";
    if (meunArrList.length) {
      let firstMenu = meunArrList[0];
      if (!firstMenu.child.length) {
        pushName = firstMenu.value;
      } else {
        pushName = firstMenu.child[0].value;
      }
    } else {
      pushName = "datastatisticsList";
    }
    this.$router.push({
      name: pushName
    });
  },
  methods: {},
  mounted() {}
};
</script>

<style lang="less">
</style>
